import { costTypeBase, diagnosisTypeBase, isAccompanyBase } from '@/config/lvtongConfig/constant';

export const baseInfo = [
  {
    label: '选择地区',
    code: 'area',
    placeholder: '请选择地区',
    componentId: 'field-item-area',
    columns: [],
  },
  {
    label: '选择医院',
    code: 'hospitalId',
    disabled: true,
    disabledText: '请先选择地区',
    placeholder: '请选择医院',
    componentId: 'field-item-picker',
    columns: [],
  },
  {
    label: '费用类型',
    code: 'costType',
    placeholder: '请选择费用类型',
    componentId: 'field-item-radio',
    columns: costTypeBase,
  },
  {
    label: '初/复诊',
    code: 'diagnosisType',
    placeholder: '请选择初/复诊',
    componentId: 'field-item-radio',
    columns: diagnosisTypeBase,
  },
  {
    label: '就医陪同',
    code: 'isAccompany',
    placeholder: '请选择就医陪同',
    unnecessary: true,
    componentId: 'field-item-radio',
    columns: isAccompanyBase,
    value: 10701,
  },
  {
    label: '科室名称',
    code: 'departmentName',
    placeholder: '请输入科室名称',
    componentId: 'field-item-input',
  },
  {
    label: '最早时间',
    code: 'subscribeDateEarliest',
    placeholder: '请选择最早就诊时间',
    componentId: 'field-item-date',
    minDate: new Date(),
    maxDate: new Date(Date.now() + 1000 * 60 * 60 * 24 * 30),
    current: new Date(),
  },
  {
    label: '最晚时间',
    code: 'subscribeDateLatest',
    placeholder: '请选择最晚就诊时间',
    componentId: 'field-item-date',
    minDate: new Date(),
    maxDate: new Date(Date.now() + 1000 * 60 * 60 * 24 * 30),
    current: new Date(),
  },
  {
    label: '备注',
    code: 'remark',
    placeholder: '请输入备注',
    componentId: 'field-item-input',
    unnecessary: true,
    maxlength: '200',
  },
];
